package com.zyh.service;

import com.zyh.Repository.RolesRepository;
import com.zyh.entity.Roles;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RolesService {
    @Autowired
    RolesRepository rolesRepository;

    public Roles findByAuthority(String authority){
        return rolesRepository.findByAuthority(authority);
    }
}
